import request from '@/plugin/axios'

export function GetSkill (data) {
  return request({
    url: '/skill/get',
    method: 'get',
    params: {
      ...data
    }
  })
}

export function GetAllSkill () {
  return request({
    url: '/skill/getAll',
    method: 'get'
  })
}

export function AddSkill (data) {
  return request({
    url: '/skill/add',
    method: 'post',
    params: {
      ...data
    }
  })
}

export function UpdateSkill (data) {
  return request({
    url: '/skill/update',
    method: 'put',
    params: {
      ...data
    }
  })
}

export function DelSkill (data) {
  return request({
    url: '/skill/del',
    method: 'put',
    params: {
      ...data
    }
  })
}
